package com.myway.service.ibe.command;


import com.travelsky.ebuild.clientapi.searchone.SearchOne;

/**
 * Created by yufei on 2018/7/17.
 */
public class NewFareCommand extends BaseIBECommand {

    public String execute() throws Exception {
        String json =  "{\"segments\":[{\"origin\":[{\"name\":\"BUS\"}],\"destination\":[{\"name\":\"HRK\"}],\"departureDate\":{\"day\":28,\"month\":7,\"year\":2018},"+
                "\"departAfterTime\":{\"hour\":0,\"minutes\":0},\"departBeforeTime\":{\"hour\":23,\"minutes\":59},\"connectionLocations\":[]}],\"displayCurrency\":\"\","+
                "\"agencies\":[{\"channel\":\"1E\",\"pos\":\"TBS\",\"travelAgencyCode\":\"TBS319\"}],\"passengers\":[{\"ptc\":[\"ADT\"]}],\"preferences\":{\"changeable"+
                "\":true,\"refundable\":true,\"upgradable\":true,\"cabins\":{\"codes\":[\"FIRST\",\"BUSINESS\",\"ECONOMY\"],\"virtual\":false},\"downsell\":false,\"upsell\":false,"+
                "\"faresAllowedCarriers\":[\"MJ\"],\"noCodeshare\":false,\"noOvernightStay\":false},\"journeyPreferences\":{\"splitTicket\":false,\"noInterline\":false,"+
                "\"fareTypes\":[\"PUBLIC\",\"PRIVATE\"],\"includeBaggage\":true,\"includeCommission\":false,\"includeSurcharge\":false,\"includePenalties\":true,"+
                "\"includeDebugOutput\":true,\"includeIataTax\":true,\"includeYqyr\":true,\"platingCarrier\":\"MJ\",\"searchSpeed\":1,\"multiCabin\":false,"+
                "\"allowMultiCabinCombo\":false,\"detailedPricing\":true,\"availability\":\"HIGH\",\"sameCarrierFare\":false}}";
        SearchOne one = new SearchOne();
        this.configIBEClientPrice(one);
        String response = one.getSearchOneStringRes(json);
        return response;

    }

}



